// mysql配置文件在config文件夹database.js中存放了
// 本配置为mysql,暂时丢弃用，但是保留次项目作为后端测试
const { databaseName, userName, password, host } = require('./config/database').db
const Sequelize = require('sequelize')
const sequelize = new Sequelize(databaseName, userName, password, {
  host,
  dialect: 'mysql'
//   已经默认支持连接池
})

module.exports = { sequelize }
